package com.woniuxy.his.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.his.mapper.CheckMapper;
import com.woniuxy.his.mapper.PrescriptionMapper;
import com.woniuxy.his.service.IPayService;
import com.woniuxy.his.vo.PayOfCheckVo;
import com.woniuxy.his.vo.PayOfPrescriptionVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

@Service
public class PayServiceImpl implements IPayService {

    @Resource
    private PrescriptionMapper prescriptionMapper;

    @Resource
    private CheckMapper checkMapper;

    @Override
    public IPage<PayOfPrescriptionVo> getAllPrescriptionPayMassage( Integer current, Integer pageSize,Date startTime, Date stopTime) {
        IPage page =new Page(current,pageSize);
        IPage allPayMassage = prescriptionMapper.getAllPrescriptionPayMassage(page, startTime, stopTime);
        return allPayMassage;
    }

    @Override
    public IPage<PayOfCheckVo> getAllCheckPayMassage(Integer current, Integer pageSize, Date startTime, Date stopTime) {
        IPage page =new Page(current,pageSize);
        IPage allCheckPayMassage = checkMapper.getAllCheckPayMassage(page, startTime, stopTime);
        return allCheckPayMassage;

    }
}
